package com.example.bean;

import java.util.Map;

import org.apache.commons.collections.MapUtils;


/**
 * 封装json对象的类
 * @author Feng
 *
 */
public class TemplateMsg {
	private String touser;
	private String template_id;
	private String url;
	private String topcolor;
	private Map<String,Object> data;
	public String getTouser() {
		return touser;
	}
	public void setTouser(String touser) {
		this.touser = touser;
	}
	public String getTemplate_id() {
		return template_id;
	}
	public void setTemplate_id(String template_id) {
		this.template_id = template_id;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getTopcolor() {
		return topcolor;
	}
	public void setTopcolor(String topcolor) {
		this.topcolor = topcolor;
	}
	public Map<String, Object> getData() {
		return data;
	}
	public void setData(Map<String, Object> data) {
		this.data = data;
	}
	@Override
	public String toString() {
		return MapUtils.getString(data, "first")+"故障代码："+MapUtils.getString(data, "keyword1")+"车辆信息："+MapUtils.getString(data, "keyword2")+"故障描述："+MapUtils.getString(data, "keyword3") +
				"发生时间："+MapUtils.getString(data, "keyword4")+MapUtils.getString(data, "remark");
	}
	
}
